package com.qc.wintrax.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.qc.wintrax.BaseActivity;
import com.qc.wintrax.R;
import com.qc.wintrax.WTApplication;
import com.qc.wintrax.utils.IntentUtil;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class EventInfoActivity extends BaseActivity {

    @Bind(R.id.back_iv)
    ImageView backIv;
    @Bind(R.id.download_tv)
    Button downloadTv;
    @Bind(R.id.title_view)
    TextView titleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_event_info);
        ButterKnife.bind(this);
        String title = getIntent().getStringExtra("titles");
        titleView.setText(title);
    }

    @OnClick({R.id.back_iv, R.id.download_tv})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back_iv:
                WTApplication.getInstance().finishActivity();
                break;
            case R.id.download_tv:
                IntentUtil.startActivity(DownloadPageActivity.class);
                break;
            default:
                break;

        }
    }
}
